package org.fast.develop.logicflow.core.meta.shape;

import org.fast.develop.logicflow.core.meta.Definitions;
import org.fast.develop.logicflow.core.meta.base.Resource;
import org.fast.develop.logicflow.core.meta.shape.properties.LogicFlowDefinitionProperties;

/**
 * @author 莫寅
 * @createTime 2022-11-23 22:17
 * @desc：
 */
public class LogicFlowDefinition extends Resource<LogicFlowDefinitionProperties> {

    private String author;
    private String version;
    private Definitions definitions = new Definitions();

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Definitions getDefinitions() {
        return definitions;
    }

    public void setDefinitions(Definitions definitions) {
        this.definitions = definitions;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "LogicFlow{" +
                ", version='" + version + '\'' +
                ", definitions=" + definitions +
                '}';
    }

    @Override
    public Class<LogicFlowDefinitionProperties> getPropertiesClass() {
        return LogicFlowDefinitionProperties.class;
    }
}
